package cn.bellychang.endpoint;

import org.springframework.boot.actuate.endpoint.AbstractEndpoint;

/**
 * @author ChangLiang
 * @date 2020/3/21
 */
public class CustomizedEndpoint extends AbstractEndpoint<Long> {


    public CustomizedEndpoint(String id, boolean sensitive) {
        super(id, sensitive);
    }

    @Override
    public Long invoke() {
        return collect();
    }

    public Long collect() {
        return System.nanoTime();
    }
}
